//
//  constant.h
//  UESTCPioneer
//
//  Created by Sway on 14-3-9.
//  Copyright (c) 2014年 Sway. All rights reserved.
//

#import <Foundation/Foundation.h>



#pragma mark - 颜色
#define kNavigationBarColor [UIColor colorWithRed:192.0/255.0 green:57.0/255.0 blue:43.0/255.0 alpha:1]
#define ViewControllerBackgroundColor [UIColor colorWithRed:237.0/255.0 green:237.0/255.0 blue:237.0/255.0 alpha:1]
#define kBorderColor [UIColor colorWithRed:175.0/255.0 green:175.0/255.0 blue:175.0/255.0 alpha:0.8]


#define IS_IOS7 ([[[UIDevice currentDevice]systemVersion]floatValue] >= 7.0)

#define IS_4INCH (fabs((double)[[UIScreen mainScreen] bounds].size.height - (double)568)<DBL_EPSILON)

#define kNotificationUnreadTotalRefreshed  @"NotificationUnreadTotalRefreshed"
#define kNotificationUnreadChatMsgRefreshed  @"NotificationUnreadChatMsgRefreshed"
#define kNotificationCancelCollect  @"kNotificationCancelCollect"

#define kNewsEntityName @"NewsEntity"
#define kPioneerEntityName @"PioneerNewsEntity"
#define kPartyNoticeNewsEntityName @"PartyNoticeNewsEntity"
#define kPublicityNewsEntityName @"PublicityNewsEntity"
#define kPartyActivityNewsEntityName @"PartyActivityNewsEntity"
#define kMoodShareNewsEntityName @"MoodShareNewsEntity"
#define kPartiesEntityName @"PartiesEntity"

/*修改*/
#define kPartyThinkingReportEntity @"PartyThinkingReportEntity"
/**/


#define debugMode 0

@interface constant : NSObject
+(id)getCenterController;
+(void)setCenterController:(id)con;
+(NSString*)getUserId;
+(void)setUserId:(NSString*)user;
+(NSString*)getUserName;
+(void)setUserName:(NSString*)name;
+(void)setUserHeadUrl:(NSString*)headUrl;
+(NSString *)getUserHeadUrl;

+(void)setIndexId:(NSString *)Id;
+(NSString *)getIndexId;

+(NSDictionary*)getPersonalInfo;
+(void)setPersonalInfo:(NSDictionary*)info;

+(NSString*)getName;
+(void)setName:(NSString*)name;

+(void)setBranch:(NSString*)branch;
+(NSString *)getBranch;


//------------ Sakura-2014-10-09 begin 修改-------------
+(NSString*)getPersonScore;
+(void)setPersonalScore:(NSString*)perScore;
//------------ Sakura end ---------------

//学院
+(void)setUserInstitute:(NSString *)institute;
+(NSString *)getUserInstitute;

+ (UIImage *)changeImage:(UIImage *)image rotation:(UIImageOrientation)orientation;

//------------ Sakura-2014-10-09 begin 修改-------------
//通过一个标志来表示当前页面是什么
//currentView
//1 -> 成电视角
//2 -> 党员活动
//3 -> 党员服务
//4 -> 通知公告
//5 -> 活跃排行
+(void)setCurrentView:(int)currentView;
+(int)getCurrentView;
//------------ Sakura end ---------------
+(BOOL)checkAccount;
+ (UIViewController *)findViewController:(UIView *)sourceView;
@end
